package com.whitehot.xk2;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;

import com.whitehot.klib.third.imageloader.ImageConfig;
import com.whitehot.klib.third.imageloader.glide.GlideImageConfig;
import com.whitehot.klib.utils.Utils;

import javax.inject.Inject;

import butterknife.BindView;
import butterknife.ButterKnife;

public class MainActivity extends AppCompatActivity
{

    @BindView(R.id.imgd)
    ImageView img;

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);

        Utils.getAppComponent().imageLoader().loadImage(this,
            GlideImageConfig
                    .builder()
                    .url("https://cdn.pixabay.com/photo/2017/09/11/17/01/girl-2739674__340.jpg")
                    .imagerView(img)
                    .build());
    }
}
